diff --git a/mesh_relax.py b/mesh_relax.py
index a47f294043c35d95054c5786cc657d5670ab2e66..77da5a233814e76a8463bdd03bd38be539df9aaa 100644
--- a/mesh_relax.py
+++ b/mesh_relax.py
@@ -52,6 +52,7 @@ from bpy.props import IntProperty
 def relax_mesh(self, context):
     
     # get active object and remember some of its mesh info
+    sce = context.scene
     obj = context.active_object
     me_old = obj.data
     me_name = me_old.name
@@ -76,7 +77,7 @@ def relax_mesh(self, context):
     bpy.ops.object.mode_set(mode='OBJECT')
 
     # apply and remove the modifier
-    me = obj.create_mesh(True, 'PREVIEW')
+    me = obj.create_mesh(sce, True, 'PREVIEW')
     obj.data = me
     obj.modifiers.remove(sw)