Bugfix on importing groups