APO in Woocommerce does not update product stock

Hello, when a product goes out of stock, its stock is not being updated. When it is sold out, there is an X on the size making it impossible to buy. But with APO the X does not update. I did several tests, and only when I activate the APO, I wait a little, it stops working. When I leave APO off, it works perfectly.

Would there be any way to leave the APO activated and the stock working too?