fix pm_snippet bug