Thanks, it seems it’s the way that woocommerce deals with the order ID as post, that’s why it is somehow random, anyway I managed it via a plugin.