fixed portfolio bug