Fixed CSV input bug