fixed template error when no results displayed