fixed problem when computing bin averages. Before, the result always included one base pair more