bugfix for tuple that should be a namedtuple