fixed enumeration bug