fix a bug - changes cores to num_threads.