fix scrollback double line issue