fixed bugs of initialize memory