fix the portfolio bug