Index: trunk/Mars/msimcamera/MSimRandomPhotons.cc
===================================================================
--- trunk/Mars/msimcamera/MSimRandomPhotons.cc	(revision 9991)
+++ trunk/Mars/msimcamera/MSimRandomPhotons.cc	(revision 10092)
@@ -238,5 +238,5 @@
     }
 
-    // If the simulated wavelenth range exists and is smaller reduce the
+    // If the simulated wavelength range exists and is smaller, reduce the
     // range to it. Later it is checked that at both edges the transmission
     // is 0. This must be true in both cases: The simulated wavelength range
@@ -338,10 +338,10 @@
     {
         *fLog << warn << "WARNING - Total transmission efficiency at ";
-        *fLog << min << "nm is not zero, but " << nsb.GetSpline()->Eval(min) << "... abort." << endl;
+        *fLog << min << "nm is not zero, but " << eff.GetSpline()->Eval(min) << "... abort." << endl;
     }
     if (eff.GetSpline()->Eval(max)>1e-5)
     {
         *fLog << warn << "WARNING - Total transmission efficiency at ";
-        *fLog << max << "nm is not zero, but " << nsb.GetSpline()->Eval(max) << "... abort." << endl;
+        *fLog << max << "nm is not zero, but " << eff.GetSpline()->Eval(max) << "... abort." << endl;
     }
 
