fix tasks.js