fix the missing pid argument