Bug fixes when update user