The circuit element IDs are saved as strings. When the string is not a numeric value, i.e., "capcaitor1", the module cannot cast it to an integer value (line 1391 of ...