fixed a bug where scrollback was randomly disapearing