Index: trunk/Cosy/main/MMoonPointing.cc
===================================================================
--- trunk/Cosy/main/MMoonPointing.cc	(revision 9884)
+++ trunk/Cosy/main/MMoonPointing.cc	(revision 10008)
@@ -22,6 +22,6 @@
 public:
     MPositionOffsetCalc(Double_t offset) :
-        fCosOffset(offset==0 ? 0 : TMath::Cos(offset*TMath::DegToRad())),
-        fSinOffset(offset==0 ? 0 : TMath::Sin(offset*TMath::DegToRad())),
+        fCosOffset(offset==0 ? 0 : TMath::Cos(offset)),
+        fSinOffset(offset==0 ? 0 : TMath::Sin(offset)),
         fCosAngle(0), fSinAngle(0)
     {
@@ -29,6 +29,6 @@
 
     MPositionOffsetCalc(Double_t offset, Double_t angle) :
-        fCosOffset(offset==0 ? 0 : TMath::Cos(offset*TMath::DegToRad())),
-        fSinOffset(offset==0 ? 0 : TMath::Sin(offset*TMath::DegToRad())),
+        fCosOffset(offset==0 ? 0 : TMath::Cos(offset)),
+        fSinOffset(offset==0 ? 0 : TMath::Sin(offset)),
         fCosAngle(TMath::Cos(angle*TMath::DegToRad())),
         fSinAngle(TMath::Sin(angle*TMath::DegToRad()))
@@ -37,6 +37,6 @@
 
     MPositionOffsetCalc(Double_t offset, Double_t cos, Double_t sin) :
-        fCosOffset(offset==0 ? 0 : TMath::Cos(offset*TMath::DegToRad())),
-        fSinOffset(offset==0 ? 0 : TMath::Sin(offset*TMath::DegToRad())),
+        fCosOffset(offset==0 ? 0 : TMath::Cos(offset)),
+        fSinOffset(offset==0 ? 0 : TMath::Sin(offset)),
         fCosAngle(cos), fSinAngle(sin)
     {
@@ -133,6 +133,8 @@
 Bool_t MMoonPointing::CalcPosition(const ZdAz &moon, ZdAz &srcpos, ZdAz &pointpos) const
 {
-    const Double_t fcos = const_cast<TGraph2D&>(fCos).Interpolate(moon.Az(), moon.Zd());
-    const Double_t fsin = const_cast<TGraph2D&>(fSin).Interpolate(moon.Az(), moon.Zd());
+    const Double_t az = fmod(moon.Az()+TMath::TwoPi(), TMath::TwoPi());
+
+    const Double_t fcos = const_cast<TGraph2D&>(fCos).Interpolate(az, moon.Zd());
+    const Double_t fsin = const_cast<TGraph2D&>(fSin).Interpolate(az, moon.Zd());
 
     // This is a sanity check for the case the Interpolation failed
Index: trunk/Cosy/main/MSlewing.cc
===================================================================
--- trunk/Cosy/main/MSlewing.cc	(revision 9884)
+++ trunk/Cosy/main/MSlewing.cc	(revision 10008)
@@ -134,4 +134,6 @@
     const ZdAz dest = bend/TMath::TwoPi();   // [revolutions]
 
+    // Check whether bending is valid!
+
     if (!fCosy->CheckRange(bend))
         return kFALSE;
