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

...rom xml.