fixWindowSize