fix missing item in tag search, use distinct count