Fix enums redeclaration