fix for selecting bottom targets instead of top ones