Bug fixes to planar and plane functions.