fix some bugs in upload userinfo