Add the check of target PID.
Fix typo: eID -> pid.