reload LC wizard
diff --git a/erpnext/patches/lcw_patch.py b/erpnext/patches/lcw_patch.py
index 3de4e4b..e2961ce 100644
--- a/erpnext/patches/lcw_patch.py
+++ b/erpnext/patches/lcw_patch.py
@@ -1,8 +1,9 @@
 def execute():
 	import webnotes
 	from webnotes.modules.module_manager import reload_doc
+	
 
 	reload_doc('stock', 'doctype', 'landed_cost_wizard')
 	reload_doc('stock', 'doctype', 'lc_pr_detail')
 	
-	sql("delete from `tabDocField` where parent ='LC PR Detail' and fieldname in ('purchase_receipt_no', 'include_in_landed_cost')")
+	webnotes.conn.sql("delete from `tabDocField` where parent ='LC PR Detail' and fieldname in ('purchase_receipt_no', 'include_in_landed_cost')")