fixing reference to memory attribute