Correct role name detection