Fixed inconsistency between tag creation and tag lookup

http://yellowgrass.org/issue/YellowGrass/296