fix bugs plane class