diff --git a/src/utils/bedFile/bedFile.cpp b/src/utils/bedFile/bedFile.cpp
index f296b429dc98682c2a51b9bfd997746211667069..9faaffa5e59b68c9b7d96d4dbc231c6f1e7e1aec 100644
--- a/src/utils/bedFile/bedFile.cpp
+++ b/src/utils/bedFile/bedFile.cpp
@@ -135,12 +135,11 @@ void BedFile::Open(void) {
     else {
         _bedStream = new ifstream(bedFile.c_str(), ios::in);
         
-        if (isGzipFile(_bedStream) == true) {
+        //if (isGzipFile(_bedStream) == true) {
+        if(bedFile.substr(bedFile.find_last_of(".") + 1) == "gz") {
             delete _bedStream;
             _bedStream = new igzstream(bedFile.c_str(), ios::in);
         }
-        // bytes were consumed.  rewind.
-        _bedStream->seekg(0);
         
         // can we open the file?
         if ( !(_bedStream->good()) ) {