fixes an issue with CSV reading