Fix read_line problem