Small change in _check_targets method