Fixed iterator in csv reader

Signed-off-by: Tom Wright <tom@inflatablecookie.com>