diff --git a/src/FrameProcessor.cpp b/src/FrameProcessor.cpp
index 38eb71f989b0852abc85281cfde80507e558a832..8116df2f00de9b0e2a5f4fae5387c6b8ab0d759a 100644
--- a/src/FrameProcessor.cpp
+++ b/src/FrameProcessor.cpp
@@ -475,7 +475,7 @@ namespace bgslibrary
     fs["enableWeightedMovingMean"] >> enableWeightedMovingMean;
     fs["enableWeightedMovingVariance"] >> enableWeightedMovingVariance;
     fs["enableAdaptiveBackgroundLearning"] >> enableAdaptiveBackgroundLearning;
-    fs["enableAdaptiveBackgroundLearning"] >> enableAdaptiveSelectiveBackgroundLearning;
+    fs["enableAdaptiveSelectiveBackgroundLearning"] >> enableAdaptiveSelectiveBackgroundLearning;
     fs["enableMixtureOfGaussianV2"] >> enableMixtureOfGaussianV2;
 
 #if CV_MAJOR_VERSION == 2