For in loop iterating over same value and index in table

Solved, thanks for the help