Fixed another bug in api.js