Fix Bug in WorkThread.