Fix snippet_to_text