fix for GetOpportunities