fix flash message for portfolios