fix error when remove the only group of user