fix bucketize corner case