Correctly enumerate threads