Fixes error in Span.range