Fixed bug when setting the cached buckets. Was not looping through the bucket as forgot to increment index.