Fixed reconnect connection bug