Make divideAndMergeOnX return correct y elements in result hash