fixed warning for "totalMemory"