fixed bug in memory reporting