Problems with automation "date has passed"

Hi everyone!

I have lots of subitems with different due dates, i.e.:

And I created the following automation:

The thing is that most of the subitems are with status “Done” (and due date crossed), so I figured that automation would read the dates of the ones that are not “Done”, but is reading everything and changing items that are no supposed to.

Any thoughts?