fixing templates for search results