fixed thread problem
4 files changed