[ui cleanup] [minor]
diff --git a/patches/1311/p01_cleanup.py b/patches/1311/p01_cleanup.py
index cf7ae6e..c6d4c01 100644
--- a/patches/1311/p01_cleanup.py
+++ b/patches/1311/p01_cleanup.py
@@ -1,6 +1,9 @@
 import webnotes
 
 def execute():
+	webnotes.reload_doc("stock", "doctype", "material_request")
+	webnotes.reload_doc("buying", "doctype", "purchase_order")
+	webnotes.reload_doc("selling", "doctype", "lead")
 	from core.doctype.custom_field.custom_field import create_custom_field_if_values_exist
 	create_custom_field_if_values_exist("Material Request", 
 		{"fieldtype":"Text", "fieldname":"remark", "label":"Remarks","insert_after":"Fiscal Year"})
diff --git a/patches/october_2013/p05_server_custom_script_to_file.py b/patches/october_2013/p05_server_custom_script_to_file.py
index b1d4f21..222cfea 100644
--- a/patches/october_2013/p05_server_custom_script_to_file.py
+++ b/patches/october_2013/p05_server_custom_script_to_file.py
@@ -20,7 +20,7 @@
 	from core.doctype.custom_script.custom_script import make_custom_server_script_file
 	for name, dt, script in webnotes.conn.sql("""select name, dt, script from `tabCustom Script`
 		where script_type='Server'"""):
-			if script.strip():
+			if script and script.strip():
 				try:
 					script = indent_using_tabs(script)
 					make_custom_server_script_file(dt, script)
diff --git a/patches/patch_list.py b/patches/patch_list.py
index f882739..05a7e59 100644
--- a/patches/patch_list.py
+++ b/patches/patch_list.py
@@ -238,4 +238,5 @@
 	"patches.june_2013.p07_taxes_price_list_for_territory",
 	"patches.october_2013.p08_cleanup_after_item_price_module_change",
 	"patches.october_2013.p10_plugins_refactor",
+	"patches.1311.p01_cleanup",
 ]
\ No newline at end of file