Fixed bug in tex tmpl snippet