fix reading line