Fix for refreshing token.