Set namedtuple's name correctly