fix does not send data when it is not disconnected