correct bug in api.js