Fix an issue with task config. Thanks to @vice-versa for the report.