Fix some bugs in the SettingsView.xaml.cs and SettingsModel.cs