Prevent duplicate merge events