With standard cost, this is the correct behavior based on its design. It will use the Standard cost of the product when the production order is Ended. Every transaction is always compared to current Active standard cost regardless of when that order was created or started. So if the order stays open for a long time and meanwhile, your standard cost changed, it will impact that production order and value inventory to the new current active standard.
If that is not desired, you should talk to your finance team and consulting partner on if standard cost is the correct method for inventory valuation for your business.