Fixed query when only one account is available from ist