bug fixed about pid