fixed tasks.js