fix snippet if