fix inherited class messiness