fixed updateName bug