Fixed a bug with $.w.window.main().