fix bugs, actually persist tag names