resource index error on delete