fixup critical bug with filtering tags

Fixes #41
Closes #42
Merge pull request #42 from zxqfox/hotfix/iteration-filtering-bug

fixup critical bug with filtering tags