fix for reconnect