fixes range's getStartPosition/getEndPosition, try #2