Fixed bug (segmentation fault) when there's no data available in csv
file