fix bug with "get_requested_targets"