fix hash merging