fix crashing when changing a email account