Fix refresh token issue with unexpected response