fix pid bug (kill pid with unexisted process)