Fixed the handling of negative indexes for unbounded ranges.