Fixed issues with nil groups and settings.