activityentry: fix wrong attributes used for 'target' lookup