fix typos in merge compatibility function