settings null fix