Fix permission bug when editing group