fixed reset on restore