Fix typo in registration method