fix multiprocess problem