DC capacitor compensation