fixed proper module
diff --git a/patches/erpnext_structure_cleanup.py b/patches/erpnext_structure_cleanup.py
index 436f898..ffaee31 100644
--- a/patches/erpnext_structure_cleanup.py
+++ b/patches/erpnext_structure_cleanup.py
@@ -146,6 +146,11 @@
 
 #---------------------------------------
 def run_patches():
+	# update module
+	dt_module = {'LC PR Detail':'Stock', 'Landed Cost Detail':'Stock', 'Comment Widget Record': 'Core', 'Tag':'Core', 'Tag Detail': 'Core'}
+	for d in dt_module.keys():
+		sql("update `tabDocType` set module = '%s' where name = '%s'" % (dt_module[d], d))
+	sql("update `tabSearch Criteria` set module = 'Selling' where name = 'sales_orderwise_pending_packing_item_summary'")
 	delete_unwanted_doctypes()
 	sql("start transaction")
 	delete_unwanted_pages()
@@ -161,9 +166,4 @@
 	# landed cost wizard link in stock
 	reload_doc('stock', 'Module Def', 'stock')
 	
-	# update module
-	dt_module = {'LC PR Detail':'Stock', 'Landed Cost Detail':'Stock', 'Comment Widget Record': 'Core', 'Tag':'Core', 'Tag Detail': 'Core'}
-	for d in dt_module.keys():
-		sql("update `tabDocType` set module = '%s' where name = '%s'" % (dt_module[d], d))
-	
 	sql("commit")