Fix portfolio compile error.