Fixed a bug with tuples of different sizes.