minor index bug in csv