fix logic introduced in addNewAccountInternal