fixed the error=invalid argument when the lower bound of bsrange is not power of 2.