fix wrong registration optionid after restore

Signed-off-by:Eric Villard <dev@eviweb.fr>