Corrects hash merging