Fixed the memory compatibility issue.