bug fix for api portfolios controller index action