Fix bug in html-snippet