fixed collision detection glitch in entity