Revert "multithread buggy"

This reverts commit dd14b0bc68815f988b4b2a90cf0abe55f5aa4100.