fix a bug about adding new tag