fixed bug: console api call error