Fix a memory error.