fix seq issue for connection