fix issue of cannot get refresh_token