Fix text parser only parsing the last element in a line