fix snippet