fix a bug in new process