fix the error with role to make all the related tests pass