fixes reconnection