Fix for plugin failure after first connection attempt.