Fixed the memory compatible issue.