Fixed NullPointerException on loadSettings.