bug fixes in study indexing in Phylesystem and PhylesystemShard