fixed NPE on settings