fix client reconnects