Fix multiple levels of inheritance.