Fixed error in portfolio api search.