fixed bug related to nested enums and relative names