security bug fixed - checking threadid in threadprocessor file