Bugfix in task defination