fixed redraw bug when window changes size