fix connect on startup