Fix factory-reset.