fix enum name bug when schema exists