diff --git a/src/algorithms/PBAS/PBAS.cpp b/src/algorithms/PBAS/PBAS.cpp
index 85ab9e87e0a6825906609683107c0ba2eebd5a0e..d44c6a6ff0502889208c83758f022e22d1919e96 100644
--- a/src/algorithms/PBAS/PBAS.cpp
+++ b/src/algorithms/PBAS/PBAS.cpp
@@ -195,9 +195,7 @@ bool PBAS::process(cv::Mat* input, cv::Mat* output)
           norm = abs((((double)B_Mag_Pts.at(0).at(index)[i] -
             ((double)*currentFeaturesM_Pt.at(0)))*((double)B_Mag_Pts.at(0).at(index)[i] - ((double)*currentFeaturesM_Pt.at(0)))));
 
-          dist = abs((((double)B_Col_Pts.at(0).at(index)[i] -
-            ((double)*currentFeaturesC_Pt.at(0)))*((double)B_Col_Pts.at(0).at(index)[i] - ((double)*currentFeaturesC_Pt.at(0))))
-          );
+          dist = abs(((double)B_Col_Pts.at(0).at(index)[i] - ((double)*currentFeaturesC_Pt.at(0))));
         }
         dist = ((double)alpha*(norm / formerMeanMag) + beta*dist);