Fix bug when updating group after reindexing