Fixes Results API parsing bug
diff --git a/asterix-examples/src/main/resources/cherry/js/cherry.js b/asterix-examples/src/main/resources/cherry/js/cherry.js
index 72f40fa..29a4ae1 100755
--- a/asterix-examples/src/main/resources/cherry/js/cherry.js
+++ b/asterix-examples/src/main/resources/cherry/js/cherry.js
@@ -425,17 +425,15 @@
 */
 function cherryQuerySyncCallback(res, extra) {
     records = res["results"];
+    alert(records.length);
 
     var coordinates = [];
     var weights = [];
                 
     for (var subrecord in records) {
-        for (var record in records[subrecord]) {
-            
-            var coordinate = getRecord(records[subrecord][record]);
-            weights.push(coordinate["weight"]);
-            coordinates.push(coordinate);
-        }
+        var coordinate = getRecord(records[subrecord]);
+        weights.push(coordinate["weight"]);
+        coordinates.push(coordinate);
     }
     triggerUIUpdate(coordinates, extra["payload"], weights);
 }