fixed looping in array flow chart.