try fixing memoryChange bug