Fix multithread bug
2 files changed