Stationary capacitor compensation