bug fix in BucketModel#serialize