fixing search issue with tags