Fix bug in code like "range = range"