Possible fix for bug where the first item of consecutive batches of sql replication is skipped