Fix an error when loading next task.