fix bag tuples