Bugfix at task deletion from queue