fixed disconnecting issue