fix multiprocessing