Fixes a bug with new API key returned not used until the next request