fix a couple of newly introduced bug (tags/search)