restore and mark as NOT generated