added the fix for the density parser