fix update_opportunities