fix incorrect api call