bugfix in saving user information