Fix bug in creation of filtered catalog.