PWM signal corrupted on pin 6 but not pin 5

Every access to the pin or related timer registers can affect the output signal. E.g. if the duty cycle is frequently changed...