small fix to task.js