Modify filterItems.