fix connect plugin bug