Thanks to electronic phone intercepts supplied by the CIA and a series of blunders by the plotters , the German police got wind of the gang , kept it under observation and secretly swapped the deadly chemicals for a harmless diluted mixture .