Portfolio History Endpoint Bug

The v2/account/portfolio/history endpoint is returning an incorrect value for the last value of equity (current day). It seems to be returning cash for trading instead of equity. I believe this issue is causing the GUI graph to show incorrect balances as well since it is also showing cash for trading instead of equity.