fixed being able to select invalid targets