fix bug in Bucket.__init__