fixed retrieval of opp type