Fix registration webhook code