fix connect event