fix the memory head define error