Fixed issue where portal profile is not being filtered properly