fix an issue in updating name.