Fixed settingsDialog bug