Camera while respawning

Hi when my character respawn my camrea isn’t on him like it’s supposed to it’s a bit left or right. I am using Cinemachin. I am not very good at programing so i am using this simple code. I would be grateful if you can help.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class spon : MonoBehaviour
{
public Transform mjspon;
public Transform smrt;

// Start is called before the first frame update
void Start()
{
    
}

// Update is called once per frame
void Update()
{
    
}
private void OnTriggerEnter2D(Collider2D collision)
{
    if(collision.transform == smrt)
    {
        transform.position = mjspon.position;
    }
}

}

Maybe the transform on the gameobject the camera is following is a bit off?