correction for bug of connection