Fix range set creation in parser