How to understand the unchanged voltage of capacitor