Fixed code in FitOrientation.c, fixed code in FitOrientationParameters.c