Fixed an error in the upper-bound of ranges in the expression parser