Fix error when unassign user group permission