Fix mistakes in the circuit model.