diff --git a/portal-impl/src/com/liferay/portal/layoutconfiguration/util/velocity/TemplateProcessor.java b/portal-impl/src/com/liferay/portal/layoutconfiguration/util/velocity/TemplateProcessor.java
index eeb6490d77f3d5fd778f8a95d64e82fee38c01aa..8b0fa74430b14bc496a4e5abc172bfeb9602dc0a 100644
--- a/portal-impl/src/com/liferay/portal/layoutconfiguration/util/velocity/TemplateProcessor.java
+++ b/portal-impl/src/com/liferay/portal/layoutconfiguration/util/velocity/TemplateProcessor.java
@@ -258,9 +258,8 @@ public class TemplateProcessor implements ColumnProcessor {
 
 				PortletPreferencesFactoryUtil.getLayoutPortletSetup(
 					layout.getCompanyId(), layout.getGroupId(),
-					PortletKeys.PREFS_OWNER_TYPE_LAYOUT,
-					PortletKeys.PREFS_PLID_SHARED, portletId,
-					defaultPreferences);
+					PortletKeys.PREFS_OWNER_TYPE_LAYOUT, layout.getPlid(),
+					portletId, defaultPreferences);
 			}
 		}