Fixed bug when user has no primary group.