fix restore from mpk