diff --git a/includes/webform.report.inc b/includes/webform.report.inc
index 9a0f99b..be16399 100644
--- a/includes/webform.report.inc
+++ b/includes/webform.report.inc
@@ -1899,6 +1899,7 @@ function webform_download_sids_query($nid, $range_options, $uid = NULL) {
   $query = db_select('webform_submissions', 'ws')
     ->condition('nid', $nid)
     ->addTag('webform_download_sids');
+  $query->addMetaData('range_options', $range_options);
 
   switch ($range_options['range_type']) {
     case 'all':
