fix snip bug