     (om/transact! version [] #(update-state % msg) :history)))
 
 (defn empty-query [idx]
-  (index-query idx {:query-grid {:cols [{} {} {}]}
+  (index-query idx {:query-grid {:cols (vec (repeat 3 {:cells []}))}
                     :result {}}))
 
 (defn add-query-msg []

          (d/li {:role "presentation"}
            (d/a {:role "menuitem" :tab-index "-1" :href "#"
                  :on-click (h (bus/publish! owner [::remove-cell query-idx
                                                    col-idx] (:id term)))}
              "Remove"))))
      (condp = (:type term)
        :form (om/build form term {:opts opts})

                                  :loaded-topic [:loaded-form query-idx
                                                 col-idx id]}))
    (execute-query! owner (single-form-expr form)
                    [:result-loaded query-idx col-idx id]))
  (did-update [_ _ _]
    (when-let [result (:result form)]
      (clear-chart (cell-id query-idx col-idx id))
