bug fix. global connections should be updated when create new connection