Fixed a bug with window controllers in webkit browsers.