Yes, that's because you are in the doors way, and you should move to the side... just like in the real world ))) if the door don't stop when you are in its way you get a high chance to get stuck in it...