It's common with tax loss harvesting to sell all A to replace with B. When you do this, the balance history of yesterday gets deleted, as if you didn't hold A at all.
This can be fixed manually by importing CSV history, which is a bit tedious since I have to calculate the total balance using yesterday's prices.