Fix crash in accountsettings