Fix enum type inheritance.