Fixed a warning when creating the tasks