fix bug where enum was being defined twice
Merge branch 'hotfix/call_enum_definition'