Trouble with line renderer and vectors.

I have a problem with a linerenderer which have its vertices placed wrong. I have attached a picture that shows a laser attack “chain” between enemies, but as you can see its not working correctly.

If there are only one enemy within jump range from the tower, it works fine and the line ends exactly at the target.

This is my code for the linerenderer - can anyone please help me spot the error?

private void DrawArc(List<GameObject> targetList)
    {
        LineRenderer lineRenderer = gameObject.GetComponent<LineRenderer>();
        int vertexCount = targetList.Count() + 1;
        GameObject previousTarget = gameObject;

        lineRenderer.GetComponent<LineRenderer>().enabled = true; //Enable line renderer
        lineRenderer.GetComponent<LineRenderer>().SetWidth(0.05f, 0.05f); // set width of lightning
        lineRenderer.GetComponent<LineRenderer>().SetVertexCount(vertexCount); //How many parts to devide the line into
        lineRenderer.GetComponent<LineRenderer>().SetPosition(0, gameObject.transform.position); //position of the first vortex

        int i = 1;
        foreach (GameObject target in targetList)
        {
            var pos = Vector3.Lerp(previousTarget.transform.position, target.transform.position, i / ((float)vertexCount));
            lineRenderer.GetComponent<LineRenderer>().SetPosition(i, pos);
            previousTarget = target;
            i++;
        }
    }

I also have a problem with my line not being of equal thickness as it looks like the line is twisting (rotating the 2d line)

.

I figures it out my self as i looking at the code while making this thread.

The lines:

var pos = Vector3.Lerp(previousTarget.transform.position, target.transform.position, i / ((float)vertexCount));
            lineRenderer.GetComponent<LineRenderer>().SetPosition(i, pos);
            previousTarget = target;
            i++;

should be:

            lineRenderer.GetComponent<LineRenderer>().SetPosition(i, target.transform.position);
            i++;

But i still have a problem with my rotation.