Bugfix at task deletion from queue
Bugfix at task deletion from queue