Fixed reindex with inheritance - closes #194