fix a bug of mk_tags script