Bug Fix: Loading Prefs

Fixed the main load_prefs() function.