fix disconnect error