Fix a bug with refresh_token