fixed bug in update user