diff --git a/layouts/v7/modules/Products/ProductsPopupContents.tpl b/layouts/v7/modules/Products/ProductsPopupContents.tpl
index 1f5368fbc23a6beb2d8e35a0e658563efd08f1ea..5f533cb9fdee80d6df466899a427601dd46e549c 100644
--- a/layouts/v7/modules/Products/ProductsPopupContents.tpl
+++ b/layouts/v7/modules/Products/ProductsPopupContents.tpl
@@ -21,7 +21,7 @@
         <input type="hidden" id="pageEndRange" value="{$PAGING_MODEL->getRecordEndRange()}" />
         <input type="hidden" id="previousPageExist" value="{$PAGING_MODEL->isPrevPageExists()}" />
         <input type="hidden" id="nextPageExist" value="{$PAGING_MODEL->isNextPageExists()}" />
-        <input type="hidden" id="totalCount" value="{$listviewcount}" />
+        <input type="hidden" id="totalCount" value="{$LISTVIEW_COUNT}" />
         <input type="hidden" value="{Vtiger_Util_Helper::toSafeHTML(Zend_JSON::encode($SEARCH_DETAILS))}" id="currentSearchParams" />
         <div class="contents-topscroll">
             <div class="topscroll-div">
diff --git a/modules/Products/models/ListView.php b/modules/Products/models/ListView.php
index ed7d4fe94aa089d7197dfd99c02b4b800f315055..0f31a55e9cd89fa5c3bb3affc54e934ca3f0be9b 100644
--- a/modules/Products/models/ListView.php
+++ b/modules/Products/models/ListView.php
@@ -93,8 +93,6 @@ class Products_ListView_Model extends Vtiger_ListView_Model {
 		if(($sourceModule !== 'PriceBooks' && $sourceField !== 'priceBookRelatedList')
 				&& ($sourceModule !== 'Products' && $sourceField !== 'productsList')) {
 			$listQuery .= " LIMIT $startIndex,".($pageLimit+1);
-		} else {
-			$listQuery .= " LIMIT $startIndex,".($pageLimit+1); // select limit was only updating for other modules, the limit was not set , cause of 0th index adding +1.
 		}
 
 		$listResult = $db->pquery($listQuery, array());