fix mergeAB