Correcting issue when trying to get density value after de-serializing from xml.