This solves the issue with the wrong leafIndex_ in the vertex_ array.
merged
mentioned in commit aa01bbb9