Trying to fix window resizing