Fix Observable to use ranges exluding the end index