Despite glitches, electronics make cars safer