error fix

had an error in how it was reading the lines from the file.