fix window from resizing