Unmaximization state was not correctly saved