Fix for groups without an associated object

For issue #18.