Fixed reconnect if connection fail