diff --git a/src/Text/Pandoc/Lua/Module/Utils.hs b/src/Text/Pandoc/Lua/Module/Utils.hs
index f83c34af7..3602612cb 100644
--- a/src/Text/Pandoc/Lua/Module/Utils.hs
+++ b/src/Text/Pandoc/Lua/Module/Utils.hs
@@ -185,10 +185,10 @@ peekAstElement = retrieving "pandoc AST element" . choice
   [ (fmap PandocElement . peekPandoc)
   , (fmap InlineElement . peekInline)
   , (fmap BlockElement . peekBlock)
+  , (fmap MetaValueElement . peekMetaValue)
   , (fmap AttrElement . peekAttr)
   , (fmap ListAttributesElement . peekListAttributes)
   , (fmap MetaElement . peekMeta)
-  , (fmap MetaValueElement . peekMetaValue)
   ]
 
 -- | Converts an old/simple table into a normal table block element.