fix bug in replicateForwardToGTID