Fixing 'error: can't start new thread' bug in ParallelRun