Fixed incorrect API call