Fix inheritance.