fix bug where moving a membrane object caused it to get unindexed at the new path, not the old