diff --git a/render_povray/render.py b/render_povray/render.py
index 9f1be317d531ec24671c3ac9e2b2b6e5826fe649..4957b12624fefc25f7e528c857d36511c3d77302 100644
--- a/render_povray/render.py
+++ b/render_povray/render.py
@@ -584,8 +584,10 @@ def write_pov(filename, scene=None, info_callback=None):
                     else:
                         trans = 0.0
 
+                    material_finish = materialNames[material.name]
+
                     file.write('pigment {rgbft<%.3g, %.3g, %.3g, %.3g, %.3g>} finish {%s} }\n' % \
-                        (diffuse_color[0], diffuse_color[1], diffuse_color[2], 1.0 - material.alpha, trans, materialNames[material.name]))
+                        (diffuse_color[0], diffuse_color[1], diffuse_color[2], 1.0 - material.alpha, trans, safety(material_finish, Level=2)))
 
                 else:
                     file.write('pigment {rgb<1 1 1>} finish {%s} }\n' % DEF_MAT_NAME)		# Write the finish last.