Bugfix, range syntax in set function