fixed snippet dropping bug caused by typo in last commit