Fixing default window state.