fix another cycle bug in delete_order