fixing a template error that was causing the search page to throw a 500 error.