fixes enumeration creation

Fixes the creation of enumerations (Activities, IssuePriorities, ...)

I haven't found the time to provide tests yet, but I thought it better to place a PR now than loosing the fix the next time I type "git checkout".