Fix route registration.