fixes #6558 allow tag value of 0