diff --git a/Framework/Algorithms/src/CorrectFlightPaths.cpp b/Framework/Algorithms/src/CorrectFlightPaths.cpp
index 014e381da8130d9d699c970409acf02d319e7383..ecf3326a7ec64ffdf621fa06f4d5b0339d622f90 100644
--- a/Framework/Algorithms/src/CorrectFlightPaths.cpp
+++ b/Framework/Algorithms/src/CorrectFlightPaths.cpp
@@ -116,8 +116,7 @@ void CorrectFlightPaths::exec() {
     auto edges = m_outputWS->binEdges(i);
     auto &X = m_outputWS->mutableX(i);
 
-    std::transform(edges.cbegin(), edges.cbegin() + numberOfChannels + 1,
-                   X.begin(), [=](const double &x) { return x - deltaTOF; });
+	m_outputWS->mutableX(i) += -deltaTOF;
 
     prog.report("Aligning elastic line...");
     PARALLEL_END_INTERUPT_REGION