fixed portfolios controller issue