fix snippet rendering