Fixed bug with collection filtering.