task queue bug fix