bug in portfolio index