fixed legacy delete