Fixed looping

Array numbering was wrong.