Fixes for get_range.