Fix union and intersection of accounts for syncing