Fixed double requests to the API