Fix permission bug when creating group