fix bucket calculation