fix edit mailsettings