Bug fix in function SetBinSize.