fix enum,string bugs