Agent set to run when "New or Modified"

Hello Everyone.Running 8.5.1 fp3.

I’ve created a agent that runs thru person documents and updates information required by my company to be entered…

The script works, if I select a doc or multiple docs…

But when I set the agent to run on new created or modified… it runs… but doesn’t process any docs…

Im using…

Set col = s.CurrentDatabase.UnprocessedDocuments

set doc = col.GetFirstDocument()

and document selection is set to people view…

Any suggestion would be great.