multithread bugfix

a fix for the multithread enumeration