Fixed problem with settingsDialog.