Fixing PWM configuration