Fixed the connection sync bug