fix line reading