diff --git a/lib/rbarman/backup.rb b/lib/rbarman/backup.rb
index <HASH>..<HASH> 100644
--- a/lib/rbarman/backup.rb
+++ b/lib/rbarman/backup.rb
@@ -237,7 +237,13 @@ module RBarman
     def missing_wal_files
       missing = Array.new
       needed_wal_files.each do |needed|
-        existing = @wal_files.select { |f| f == needed }.first
+        existing = nil
+        @wal_files.each do |f|
+          if f == needed
+            existing = f
+            break
+          end
+        end
         missing << needed unless existing 
       end
       WalFiles.new(missing)
diff --git a/lib/rbarman/version.rb b/lib/rbarman/version.rb
index <HASH>..<HASH> 100644
--- a/lib/rbarman/version.rb
+++ b/lib/rbarman/version.rb
@@ -1,3 +1,3 @@
 module RBarman
-  VERSION = "0.0.10"
+  VERSION = "0.0.11"
 end
improve speed by replacing Array#select with iterating over existing wal files and break from loop if needed wal file is found