fixing delete operation for dependent accounts