Fixed an attribute error in the settings