fix inheritance