Fix registration role bug