corrected problem with all-accounts query