Fix for the heapDump feature