fix pid issue