diff --git a/lib/s3repo/base.rb b/lib/s3repo/base.rb
index <HASH>..<HASH> 100644
--- a/lib/s3repo/base.rb
+++ b/lib/s3repo/base.rb
@@ -10,7 +10,7 @@ module S3Repo
 
     def bucket
       @bucket ||= @options[:bucket] || ENV['S3_BUCKET']
-      fail('No bucket given') unless bucket
+      fail('No bucket given') unless @bucket
     end
 
     def client
such loop, very recurse