should be ``max_bin+1``