Fix collisions detection