Fixed a registration bug.