Minor changes.
Fixed server crash related to invalid unit types.