fixed a bug when pid was disabled