Rules resulting in mail showing up in unread

Hi, I had a problems with spam and created the attached rule see picture. What I notice is that the email is sent to trash and marked as read, but still shows up in the unread message folder. Which makes me thing that the rule is not working.