fixing timeout call to api