Fixing problem where the site area would be larger than the window