Fix crash due to broken task definition.