diff --git a/src/nu/validator/xml/UseCountingXMLReaderWrapper.java b/src/nu/validator/xml/UseCountingXMLReaderWrapper.java
index <HASH>..<HASH> 100644
--- a/src/nu/validator/xml/UseCountingXMLReaderWrapper.java
+++ b/src/nu/validator/xml/UseCountingXMLReaderWrapper.java
@@ -238,6 +238,8 @@ public final class UseCountingXMLReaderWrapper
                         "http://validator.nu/properties/style-in-body-found",
                         true);
             }
+        } else if ("body".equals(localName)) {
+            inBody = true;
         }
         if (atts.getIndex("", "rel") > -1
                 && ("link".equals(localName) || "a".equals(localName))) {
Fix bug in use-counter statistics code