some minor error fixes in planar boundary checks