Fixing opening of settings dialog.