fix bugs in getUserInfo