fix delete order errors