Fix assignment of memory datatype.