Fixed bug where UID may change slightly due to group membership changes