Applied this patch, https://xenforo.com/community/threads/th-auto-merge-double-posts-deleted.140255/post-1520841