fix crash in csv table when line missing endline