Failed attempt on fixing thread sync.