Fix bugs in user profile changing