fix change role bug