fixing delete for root cards