Fixed wrong collision detection