Fix slight error in plane handling