fixed bug where enum-values would not be generated correctly