Fix errors from enums