minor fix

very minor fix to task.c