fix weird bug with x/y position collision detection