fix self collisions