Fix log causing crashes.