diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getGapItemList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getGapItemList.xml
index fb6503036883d50cf23229b6d6c15c201de03750..b744f1817007ec197a7fb5fcb451288b491c2dfd 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getGapItemList.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getGapItemList.xml
@@ -78,9 +78,9 @@ def getGapItemList(only_preferred_gap): \n
   ctool = context.getPortalObject().portal_categories\n
   if only_preferred_gap:\n
     gap_root = context.getPortalObject().portal_preferences\\\n
-                    .getPreferredAccountingTransactionGap() or\\\n
-                               context.getPortalDefaultGapRoot()\n
-    return ctool.resolveCategory(gap_root).getCategoryChildItemList(\n
+                    .getPreferredAccountingTransactionGap()\n
+    if gap_root:\n
+      return ctool.resolveCategory(gap_root).getCategoryChildItemList(\n
         base=0, is_self_excluded=1, display_method=display, sort_method=sort)\n
 \n
   result = []  \n
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index 6b65e97135727f79c21ed3f8ebdee07457a32881..bd19a3c6e36621860f1eb75d763e35524fe46e9c 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-920
\ No newline at end of file
+921
\ No newline at end of file