fixed bug in line 578: sage variable capacitor_id is considered instead of the resistor id