Fixed a bug with auto unselection of tasks