fixing the merge "by" parameter