fix bug on simple api call caching -> call length