Fix enabling/disabling the preference