minor collision detection fix