trying to fix portfolio total issue