fixes #5338 Script error when you click on role name