FF: temp fix to avoid crash on bad pref setting

- will refactor this whole section later