Bugfix for disappearing tasks on task flag click