hack for corner collisions