fixes one bug about tags