fix portfolio double class