fix bug in StateSelectPlane