Fixes bug causing csv system to skip last line.