fixing bugs plane class