Fixed target validation logic.