diff --git a/app/otbLSGRM.cxx b/app/otbLSGRM.cxx
index 0e02c48dcc0816ed6986ceb061a30d9c266bc093..9b1cc8ced937688f9f4921ed1ad569ea92b238a1 100644
--- a/app/otbLSGRM.cxx
+++ b/app/otbLSGRM.cxx
@@ -237,7 +237,7 @@ private:
 	 // Resume mode?
 	 if (GetParameterInt("resume"))
 	  {
-		controller.SetResumingMode(GetParameterInt("resume.tilerow"),GetParameterInt("resume.tilecol"));
+		controller->SetResumingMode(GetParameterInt("resume.tilerow"),GetParameterInt("resume.tilecol"));
 	  }
 
     // Run the segmentation