Fixed bug in merge ZZ