Fixed CSV parser type check