re-fix bug that creates way to many threads by reinitalizing threads array