Fix bug in merged_by attribution