fix pid is not a number bug