Fixed source priority check in merged records handling.