fix to model template for minification