Fixed target-selection bug.