Fix occur indexing not to skip last chunk.