fixed the odd compiler bug with range