fixed the role bug