Fix off index in retrieval of open leaf nodes

The index shift was introduced through the layout change of location based
tables.

Closes #758.