Fixing bugs in the portfolio template.