bug fix.when target is collection, behavior was wrong.