Fix the error about not set enumeration