correction on memory corruption