[FIX] Changed from inclusive index to exclusive