Fixed a bug in detecting existing group accounts