Fix maxWindowSize