Fixed failed renaming of _range to _distance.