Fix scrollback issue