Fixed bug in memory reporting.