Fix a bug where the `category_property/2` built-in predicate would not recognize `events` as a valid category property