fixed renameAccount function (merging mode)