Index: EventCalendar.py
===================================================================
--- EventCalendar.py	(revision 165)
+++ EventCalendar.py	(revision 166)
@@ -1386,6 +1386,7 @@
     stored_errmsg = ''
     
     request = Globs.request
+    formatter = Globs.formatter
     category = Params.category
     
     # cache configurations
@@ -1421,7 +1422,8 @@
     if Globs.page_action == 'refresh' or cache_pages.needsUpdate(arena._text_filename()) or timedelta_days >= 1:
         categorypages = searchPages(request, category)
         for page in categorypages:
+            # this is to workaround the bug in the category search returning
+            # pages that only referance the category but are not in it
+            # i.e. in the paramiter list for this macro
+            if not page.page_name == request.page.page_name:
+                formatter.pagelink(1, pagename=page.page_name)
             eventpages.append(page.page_name)
         cache_pages.update('\n'.join(eventpages), True)
         debug('New page list is built: %d pages' % len(eventpages))
