Fix api call