diff --git a/xml/readDensity.py b/xml/readDensity.py
index 634f0546d12c9fb4e709ebd7d9397b273477b434..58908c2f9a82fbe753e8500a2be9b558f5930539 100644
--- a/xml/readDensity.py
+++ b/xml/readDensity.py
@@ -372,7 +372,7 @@ if (density_type == 'Constant'):
     process = subprocess.Popen(density_value_cmd.split(), stdout=subprocess.PIPE)
     density_value_stream, error = process.communicate()
     density_value = density_value_stream.decode()
-    constant_density = ConstantProperty(density_type, density_value)
+    constant_density = ConstantProperty('density', density_value)
     constant_density.writeAsMediumPropertyToFile(sys.argv[1])
 
 if (density_type == 'TemperatureDependent'):