restore registry bug fixed