This breaks nan restore to second rom Revert "Revert "fix restore as secondary ROM""

This reverts commit 549fd147c44eb8ca6777bf51a3adf38e5dd24d08.