fixed bug when deleting a usergroup