Why some artificial intelligence is smart until it's dumb