fixed settings NameError