Fix incorrect assignment of Window.shared to true. Rename field to is_shared.