diff --git a/src/ZMPRefTrajectoryGeneration/OrientationsPreview.h b/src/ZMPRefTrajectoryGeneration/OrientationsPreview.h
index 2aae5d6569a3582db362e117615eb2420b82f75e..9a7823b830009ac67e5bfbc16b3bbd272f03255a 100644
--- a/src/ZMPRefTrajectoryGeneration/OrientationsPreview.h
+++ b/src/ZMPRefTrajectoryGeneration/OrientationsPreview.h
@@ -55,7 +55,7 @@ namespace PatternGeneratorJRL
     void previewOrientations(const double &Time,
 			     std::deque<double> &PreviewedSupportAngles,
 			     const COMState &TrunkState, COMState &TrunkStateT,
-			     SupportState_t CurrentSupport,
+			     const SupportFSM * SupportFSM, SupportState_t CurrentSupport,
 			     std::deque<FootAbsolutePosition> &LeftFootAbsolutePositions,
 			     std::deque<FootAbsolutePosition> &RightFootAbsolutePositions);
 
@@ -122,14 +122,14 @@ namespace PatternGeneratorJRL
     unsigned int m_FullDebug;
 
 
-    bool verifyAngleOfHipJoint(const SupportState * Support,
+    bool verifyAngleOfHipJoint(SupportState_t CurrentSupport,
 			       const COMState &TrunkState, COMState &TrunkStateT,
 			       double CurrentSupportFootAngle,
 			       unsigned int StepNumber);
 
     void verifyVelocityOfHipJoint(const double &Time, COMState &TrunkStateT,
 				  const double &PreviewedSupportFoot, const unsigned int &StepNumber,
-				  const SupportState * Support,
+				  SupportState_t CurrentSupport,
 				  const double &CurrentRightFootAngle, const double &CurrentLeftFootAngle,
 				  const double &CurrentLeftFootVelocity,
 				  const double &CurrentRightFootVelocity);