Fixed a bug in the plane-plane intersection function