Fix: initialize prefs before other actions
Needs for registerHotkeys()