fix restore as secondary ROM

Change-Id: Ibc36190faaa6eb48ed3e7d3eb4cc354cc1364365