fix connect repeat