fixed a wrong api call in api/index