fixes a minor error in calculating differential endpoint