fix add_line
fix multiline
fix line.buffer missing bug