The Servo library takes over timer1, meaning that pins 9 and 10 (Uno) cannot be used for PWM. This is documented.