fixed crash when enumeration contains only one value