fix snippet problems