Use the merged object after merge() to avoid issues with detached objects