fix disconnect