fixed bug on enums