diff --git a/lib/Text/Pandoc/CrossRef/References/Blocks.hs b/lib/Text/Pandoc/CrossRef/References/Blocks.hs
--- a/lib/Text/Pandoc/CrossRef/References/Blocks.hs
+++ b/lib/Text/Pandoc/CrossRef/References/Blocks.hs
@@ -141,8 +141,8 @@
     else do
       idxStr <- replaceAttr opts label (lookup "label" attrs) alt imgRefs'
       let alt' = case outFormat opts of
-            -- f | isFormat "latex" f ->
-              -- RawInline (Format "tex") ("\\label{"++label++"}") : alt
+            f | isFormat "latex" f ->
+              RawInline (Format "tex") ("\\label{"++label++"}") : alt
             _  -> applyTemplate idxStr alt $ figureTemplate opts
       return $ Image attr alt' img
 #else
diff --git a/pandoc-crossref.cabal b/pandoc-crossref.cabal
--- a/pandoc-crossref.cabal
+++ b/pandoc-crossref.cabal
@@ -2,7 +2,7 @@
 -- documentation, see http://haskell.org/cabal/users-guide/
 
 name:                pandoc-crossref
-version:             0.1.6.4
+version:             0.1.6.5
 synopsis:            Pandoc filter for cross-references
 description:         pandoc-crossref is a pandoc filter for numbering figures, equations, tables and cross-references to them.
 license:             GPL-2
@@ -24,7 +24,7 @@
 source-repository this
   type: git
   location: https://github.com/lierdakil/pandoc-crossref
-  tag: v0.1.6.4
+  tag: v0.1.6.5
 
 library
   exposed-modules:     Text.Pandoc.CrossRef
@@ -52,8 +52,8 @@
                      , yaml >= 0.8 && <0.9
                      , data-default >= 0.4 && <0.6
                      , bytestring >=0.9 && <0.11
-                     , data-accessor >= 0.2.2.7 && < 0.3.0.0
-                     , data-accessor-transformers >= 0.2.1.7 && < 0.3.0.0
+                     , data-accessor >= 0.2.1.6 && < 0.3.0.0
+                     , data-accessor-transformers >= 0.2.1.6 && < 0.3.0.0
   hs-source-dirs:      lib
   Ghc-Options:         -Wall
   default-language:    Haskell2010
@@ -90,8 +90,8 @@
                  , bytestring >=0.9 && <0.11
                  , hspec
                  , process >=1 && <1.5
-                 , data-accessor >= 0.2.2.7 && < 0.3.0.0
-                 , data-accessor-transformers >= 0.2.1.7 && < 0.3.0.0
+                 , data-accessor >= 0.2.1.6 && < 0.3.0.0
+                 , data-accessor-transformers >= 0.2.1.6 && < 0.3.0.0
                  , pandoc-crossref
   other-modules: Native
   Ghc-Options:  -rtsopts -Wall -fno-warn-unused-do-bind -threaded
