fix double defined function (automerge ....)