Bug fix to make filtering work

Filtering now works even when you're filtering using values in another
tab. Fix is kinda ugly. Could use some more work.