fixed disconnection problem