Fixed filtering of events based on library and category