fix prefs revert