debugged a minor bug related to bin_fill_offsetw