Fixed issue on multiprocessing with fork.