Fix enum getting wrong parent