fix disconnect timing