fixes for windowResize