Fix enum attribute parsing.