diff --git a/ckanext/odsh/fanstatic/autocomplete.js b/ckanext/odsh/fanstatic/autocomplete.js
index f5647ace5d3a68a7c8688ef088f002c995da755b..d03b158f4ed1d171767b5116bfad97c29d29732a 100644
--- a/ckanext/odsh/fanstatic/autocomplete.js
+++ b/ckanext/odsh/fanstatic/autocomplete.js
@@ -4,6 +4,9 @@ $(function () {
 
   // Activate search suggestions for the search bar in the header and for the
   // search bar used in the body.
+
+
+})
   $('.site-search input, .search').autocomplete({
     delay: 500,
     html: true,
@@ -13,9 +16,7 @@ $(function () {
       $.getJSON(url, {q: request.term})
         .done(function (data) {
           console.log(data);
-          response(data);
+          response(data.result.spellcheck.suggestions[1].suggestion);
         });
       }
-  });
-
-})
+  });
\ No newline at end of file
diff --git a/ckanext/odsh/logic/action.py b/ckanext/odsh/logic/action.py
index 9dad1287e3f6412e603171a0f30a43d2d0d60b80..98bd55263330055a0cd51ef356a73f8f189e780d 100644
--- a/ckanext/odsh/logic/action.py
+++ b/ckanext/odsh/logic/action.py
@@ -53,5 +53,5 @@ def autocomplete(context, data_dict):
         raise SearchError('SOLR returned an error running query: %r Error: %r' %
                           (query, e))
 
-    suggest = solr_response.raw_response.get('spellcheck')
+    suggest = solr_response.raw_response
     return suggest