make enum works correctly