Fix getting a list of tuples no a dict