diff --git a/preprocessor/ModelTree.cc b/preprocessor/ModelTree.cc
index 9bfb30eaff3b0a0ad3aa7f13853b2de4bf9dc3a1..52de1aa17740399b5fdac52ad5e5ea06eeaa9ae8 100644
--- a/preprocessor/ModelTree.cc
+++ b/preprocessor/ModelTree.cc
@@ -1588,7 +1588,7 @@ ModelTree::writeLatexModelFile(const string &basename, ExprNodeOutputType output
 
                 content_output << iteqt->second.first;
 
-                if (!empty(iteqt->second.second))
+                if (iteqt->second.second.empty())
                   content_output << "= `" << iteqt->second.second << "'";
 
                 wrote_eq_tag = true;