fixing bug in generator where enums were missing names