diff --git a/docs/writingchecks.html b/docs/writingchecks.html
index f7da49e66..d464b9696 100644
--- a/docs/writingchecks.html
+++ b/docs/writingchecks.html
@@ -524,7 +524,7 @@
// errors in the same file
// fire the errors for this file to the AuditListeners
- dispatcher.fireErrors(path, getMessageCollector.getMessages());
+ dispatcher.fireErrors(path, getMessageCollector().getMessages());
// signal end of file to AuditListeners
dispatcher.fireFileFinished(path);