1 fix task queue Empty() bug