Fixed bug when searching on tags