Fixed deleting of tuples.