fixed bug in case of tag filter