JWF: Fixed a few input parsing crashes.