Fix merge nodes