fixed small bug where target was not a['target']