fixed empty nil from groups