Preference empty error fix.