Fix NullPointerException on settings load.