Fixed memUsedPeak bug for all definitions.