fix rounding error of wtd.hist