tmpl +fix bug with category