fixed ome bugs for portfolio