diff --git a/modules/Bio/EnsEMBL/DBSQL/RepeatFeatureAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/RepeatFeatureAdaptor.pm
index 0a4f6d12fc782ff15a0756c4d3b2c9a71b815084..0ed2a79340e0da518673122c3f447d8c4e9606e9 100644
--- a/modules/Bio/EnsEMBL/DBSQL/RepeatFeatureAdaptor.pm
+++ b/modules/Bio/EnsEMBL/DBSQL/RepeatFeatureAdaptor.pm
@@ -289,11 +289,11 @@ sub _objs_from_sth {
           $seq_region_end   = $dest_slice_end - $tmp_seq_region_start + 1;
           $seq_region_strand *= -1;
         }
+      }
 
-        #throw away features off the end of the requested slice
-        if($seq_region_end < 1 || $seq_region_start > $dest_slice_length) {
-          next FEATURE;
-        }
+      #throw away features off the end of the requested slice
+      if($seq_region_end < 1 || $seq_region_start > $dest_slice_length) {
+	next FEATURE;
       }
       $slice = $dest_slice;
     }