Fix a bug for process id