Fixed bug with snippet preview