fix a bug from Line.read