fixed error in pitchescontroller.update method