bin_size bug fixed