Another silly bug: i was resetting the list on every element of the for loop.