fixed api call error