fix class parent order.