Fixed the call to register.