Fixed the delete from buckets and not creating buckets bug