Fixed bug when returning to details page after closing position on a stock.