fix wrong api call