fixed redraw upon window resize