fixes reconnect