fix bugs in ConnectionGroup