Fixed bug for tuples.