Fix memory debugging.