fix lose pid error