Fix issue with updating index after removing data.

Fixes #89.