fix a problem where a plane would be added even though it is not one