Fix tag filter

Fix the tag filter that I broke. We really need a test for this.