Fixing collision detection.
Actually fixing collision detection.