fix a bug on tag