SettingsWindow: fixed bug with writing useless info's into config