Fix collisions infinite loop