Fixed csv error handling.