fix display on template index.html and categories.html