fixed tag filtering bug