fix buildPlane bug