Fixed minor bug related to csv