fix restore for glass