Bug fix in tasks.