fix to the OT algorithm with 3..n history diversions