Fix bug in nbtag helper class