 (defn fetch-badges [state]
   (let [{:keys [user-id country-selected badge-name recipient-name issuer-name tags order full-tags tags-badge-ids value]} @state
         ajax-message-atom (cursor state [:ajax-message])
-        page-count-atom (cursor state [:page_count])]
+        page-count-atom (cursor state [:params :page_count])]
     (reset! ajax-message-atom (t :gallery/Searchingbadges))
     (reset! page-count-atom 0)
     (ajax/GET

                    :page_count     @page-count-atom}
       :handler (fn [data]
                  (value-helper state (get-in data [:tags]))
                  (swap! state assoc
                         :badges (:badges data)
                         :page_count (inc (:page_count @state))
                         :badge_count (:badge_count data)))
       :finally (fn []
                  (ajax-stop ajax-message-atom))})))

                 :page_count     page_count}
       :handler (fn [data]
                  (value-helper state (get-in data [:tags]))
                  (swap! page-count-atom inc)
                  (swap! state assoc
                         :badges (into (:badges @state) (:badges data))
                         :badge_count (:badge_count data)))
       :finally (fn []
                  )})))
