fix enum ident resolution