Fixed wrong calculation of PLANE_DIST.