Fixed saving of changed buckets. Broken by pervious commit