fixed bug in portfolioManager