Fix wrong api call