Fixing bug where external enums were being generated...