fix membership index