fix windowResize has deleted