Fix a bug in filter items.