Hash merging is incorrectly used