API call fix