reflection: fixed enumeration validation