fix redraw of history on making screen smaller