Fix a bug where a dict instead of a tuple