fixed bug that caused gather_data to crash if number of cams = 1