Fix reg005.
More small fixes.