update: fixed a bug where the last line of a data set (if incomplete)
causes the program to crash