fix problem with deconnection