fixe the disconnect method.