fixed crash when clicking save without an account selected