fixed odd error that should have been fixed (indexing the threads)