fix fetchOpportunity bug