add tag to term table. fix "#xNNNN" tag filter.

should resolve #739