fix local bucket bug