minor bugfixes to memorySummary directive