Restore routine
fixes