fix template for minifying