fix up offsets in __mementos_restore