Fix registration and error in package.