Another attempt at fixing the memory.