BUG: Fix offset error in csv parser