fixes bugs when the server is down and resized

the frame size