fix bucketizing