fixes in cms2 updates
diff --git a/erpnext/patches/may_2012/cms.py b/erpnext/patches/may_2012/cms.py
index 2711b1d..21ee381 100644
--- a/erpnext/patches/may_2012/cms.py
+++ b/erpnext/patches/may_2012/cms.py
@@ -4,7 +4,7 @@
 	from webnotes.model.code import get_obj
 	
 	# rewrite pages
-	get_obj('Website Settings').rewrite_pages()
+	get_obj('Website Settings').on_update()
 	
 	ss = get_obj('Style Settings')
 	ss.validate()