Bugfix on rangeMethod