fixed major typo bug in bucketing