density profile hotfix 

Hotfix for issue #82