fix bug in circuit diagram