Bug in Pricing Rule, Discount applied after save even though it has expired

ERPNext: v10.1.75 (master)
Frappe Framework: v10.1.67 (master)

So I am testing Pricing Rule and I believe there is a bug after I save the document.
I create a Pricing Rule, Valid From Feb and Valid Till March.
After that I create a Sales Order. I add items that are applied on this Pricing Rule and after save the pricing rule is applied.

It is not supposed to be applied.