Fixed 'register' command