fixed problem with minify template HTML