Issue while replacing role with resource in teams tab and deleting the resource from team