fix update_user error and refine user_rank