Yea when the camera is positioned slightly behind the doorway/passageway, all the floorspace you see in front of you is actually doorway space. So you must advance the camera through the door to be able to target anything be behind it. But in the heat of a battle , chances are high you forget and blam you cast a AOE spell in your own back.