Fixed bug caused by exclusive range bound.