Fix crash on search with multiple accounts set up