fixed restart issue for threader