Fix in Merging in doublematrix datasets