diff --git a/wetb/prepost/windIO.py b/wetb/prepost/windIO.py
index 429320d9ba94fd37528437bf4427ee73520c8f26..b11abe5eba6f67a8442a776133fe27129880ce4f 100755
--- a/wetb/prepost/windIO.py
+++ b/wetb/prepost/windIO.py
@@ -560,7 +560,7 @@ class LoadResults(ReadHawc2):
 
         super(LoadResults, self).__init__(FileName, ReadOnly=readdata)
         self.FileType = self.FileFormat
-        if self.FileType.find('HAWC2_'):
+        if self.FileType.find('HAWC2_') > -1:
             self.FileType = self.FileType[6:]
 
         if readdata: