fixed bug with tag search