code style
fix calculation of bucket num