«order item having status CANCELLED by order status is COMPLETED»

I have fixed it with the code:

UPDATE sales_order_item SET qty_canceled = 0 WHERE 6178 = order_id;