diff --git a/mesh_relax.py b/mesh_relax.py
index 77da5a233814e76a8463bdd03bd38be539df9aaa..211ecfca372218c55bbd291f03a265f1ea749160 100644
--- a/mesh_relax.py
+++ b/mesh_relax.py
@@ -52,7 +52,6 @@ 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
@@ -77,7 +76,7 @@ def relax_mesh(self, context):
     bpy.ops.object.mode_set(mode='OBJECT')
 
     # apply and remove the modifier
-    me = obj.create_mesh(sce, True, 'PREVIEW')
+    me = obj.create_mesh(context.scene, True, 'PREVIEW')
     obj.data = me
     obj.modifiers.remove(sw)
 
@@ -125,4 +124,4 @@ def unregister():
     bpy.types.VIEW3D_MT_edit_mesh_vertices.remove(menu_func)
 
 if __name__ == "__main__":
-    register()
\ No newline at end of file
+    register()