fix get_bucket_stats method