fixed a plane mixup bug