Date and age based program rules not working for tracked entity attributes?

It seems that program program rules for ages and date attributes are not working during enrollment.

They are working for data elements in program stages? Has anyone encountered this?

I figured that the expression has to be paired with d2:hasValue

eg. d2:hasValue(‘enrollment_date’) && d2:hasValue(‘age’) && d2:yearsBetween(A{age},V{enrollment_date}) >= 120