fix worker thread blocked bug