Fixed merging algorithm.