yes, would you like to give me a screenshot of your event?
I am not sure how you check the distance between all instances here.
for each ordered by distance(X, Y, Object.X, Object.Y)
just checks from the first instance, not all instances to each other.
also only the first nearest instance is picked. If you leave the loop there, maximum 2 instances can do an action.
many thanks for additional information!