Fix the connect issue when checking deployment