bug fix when update a user