Same fix as previous commit - applied to token refresh.