Bug fixed: If 2 enums are declared, it produced a Fatal Error. So I changed the way to declare enums to use only the enum() function.