Fixed simulate_portfolio.