fix api.js not sync