Fix registration error