Fixing delete order.