fixed bug with collision detection