Fixed portfolio bug