Minor iterator fix. Why is memory still leaking tho?
works, messing from here on out