Remove pid in args in setRole