fixed multiprocess bug