Fix a bug that was making 2 requests.