diff --git a/app/otbLSGRM.cxx b/app/otbLSGRM.cxx
index 20e93301c98be2288df2a8468a477a00808fac88..ce21bc7787ba2554765b0421de316cef28f04e5f 100644
--- a/app/otbLSGRM.cxx
+++ b/app/otbLSGRM.cxx
@@ -234,7 +234,7 @@ private:
     labelImageSource->SetGraph(controller->GetOutputGraph());
     labelImageSource->SetOutputSize(inputImage->GetLargestPossibleRegion().GetSize());
     labelImageSource->SetOutputOrigin(inputImage->GetOrigin());
-    labelImageSource->SetOutputSpacing(inputImage->GetSpacing());
+    labelImageSource->SetOutputSpacing(inputImage->GetSignedSpacing());
     labelImageSource->SetOutputProjectionRef(inputImage->GetProjectionRef());
     labelImageSource->GenerateOutputInformation();
 
@@ -246,7 +246,7 @@ private:
     if (dynamic_cast<OutputImageParameter*>(GetParameterByKey("out")))
       {
       OutputImageParameter* paramDown = dynamic_cast<OutputImageParameter*>(GetParameterByKey("out"));
-      paramDown->SetRAMValue(256);
+      paramDown->SetRAMValue(1024);
       }
 
     // Get temporary files list