Fix some segfaulting error messages.