Correct mergenodes