Error fixed in task.py