fix plane validation