minor fix

very minor fix to task.c
Merge pull request #38 from roeitell/dev

minor fix