Fixed bug with spaces in portfolios