Fix an error with the memory