Fix inheritance realization