8.66: fixed bugs with parameter check in registration commands.