Fixed bad dereferencing of null settings