fix to_h error in range_request